{* Smarty *}
{include file="header.tpl"}

<script language="javascript" src='{$BASE_HOSTPATH}dr-content/userinfo.js'></script>

<!-- start main -->
<div id="main">
<div id="mainbar-full">
	<!--  ===================================start of user profile==================================================    -->
{include file="sub-header.tpl"}

	<table class="vcard">
		<tr>
			<td style="vertical-align:top; width:170px">
				<table>
					<tr>
						<td id="user-avatar">
							<img src="{$avatar}" alt="avatar" title="avatar"
								 width="128" height="128"/>
						</td>
					</tr>
					<tr>
						<td class="summaryinfo">
							<a href="" title="view reputation"><span>{$user.reputation}</span></a>
							<div style="margin-top:5px; font-weight:bold">reputation</div>
						</td>
					</tr>
				</table>
			</td>
			<td style="vertical-align: top; width:350px">
				<table class="">
					<tr>
						<td colspan="2" style="margin-top:20px"><h2>{$user.role}</h2></td>
					</tr>
					<tr>
						<td>用户名</td> <td>{$user.username}</td>
					</tr>
					<tr>
						<td>注册时间</td> <td>{$user.memberfor}</td>
					</tr>
					<tr>
						<td>最近活跃时间</td> <td>{$user.seen}</td>
					</tr>
					<tr>
						<td>个人网址</td> <td>{$user.website}</td>
					</tr>
					<tr>
						<td>地址</td> <td>{$user.location}</td>
					</tr>
					<tr>
						<td>性别</td> <td>{$user.gender}</td>
					</tr>
					<tr>
						<td>年龄</td> <td>{$user.age}</td>
					</tr>
				</table>
			</td>

			<td style="width:390px">
				<div id="user-about-me" class="note"">{$user.aboutme}</div>
</td>
</tr>
</table>

<!--  ===================================end of user profile==================================================    -->
{* 显示页面的标签页 *}
<div class="sub-header">
	<h1>{$content.tabs2.title}</h1>
	<div id="tabs">
	{foreach from=$content.tabs2.tabs key=key item=tab2}
		<a href="{$tab2.link}" {if $key == $content.tabs2.curr}class="youarehere"{/if}>{$tab2.title}</a>
	{/foreach}
	</div>
</div>

<div id="message_info">
{if $display_id eq $login_id}
	{if $tab eq "message" || $tab eq ""}
		{if $message|@count eq 0}
			您没有新的消息
		{else}
			<span onMouseOver="this.style.textDecoration='underline';" onMouseout="this.style.textDecoration='none';">
				<a href="dr-page-userinfo.php?uid={$uid}&tab=message&display=yes#module">您有 {$message|@count} 条新消息</a></span>
			{if $display eq "yes"}
				<span onMouseOver="this.style.textDecoration='underline';" onMouseout="this.style.textDecoration='none';">
					<a href="#" onclick="clear_message({$login_id},'message');return false;">清除所有消息</a></span>
			{/if}
		{/if}

		{elseif $tab eq "activity" }
		<span>
				<select name="act_time" id="act_time" size="1" nchange="display_selected_activity(this.value)">
					<option id='day-3' value='3'>最近三天</option>
					<option id='day-7' value='7'>最近七天</option>
					<option id='day-15' value='15'>最近半个月</option>
					<option id='day-30' value='30'>最近一个月</option>
				</select>
			{literal}
				<script type="text/javascript">
					initOption();
				</script>
			{/literal}
				</span>
		{if $activity|@count neq 0}
			<span>总共{$activity|@count}条</span>
				<span onMouseOver="this.style.textDecoration='underline';"
					  onMouseout="this.style.textDecoration='none';">
				<a href="#"
						 onclick="clear_message({$login_id},'action');return false;">清除所有活动记录</a></span>
		{/if}
	{/if}
	{elseif $tab eq "activity" || $tab eq ""}
	<span>
			<select name="act_time" id="act_time" size="1" onchange="display_selected_activity(this.value)">
				<option id='day-3' value='3'>最近三天</option>
				<option id='day-7' value='7'>最近七天</option>
				<option id='day-15' value='15'>最近半个月</option>
				<option id='day-30' value='30'>最近一个月</option>
			</select>
		{literal}
			<script type="text/javascript">
				initOption();
			</script>
		{/literal}
			</span>
{/if}
</div>
<!--------------------------------------------------------------------新消息--------------------------------------------------------------	-->
{literal}
		<style>
			th, td {
				text-align: left;
				vertical-align: middle;
				padding: 5px;
			}
		</style>
	{/literal}
{if $display_id eq $login_id && $tab eq "message" && $display eq "yes"}
<div id="message_list">
	<table>
		{section name=ptr loop=$message}
			<div id='message-{$message[ptr].umsg_id}'>
				<tr>
					<td>{$message[ptr].created_date}</td>
					{if $message[ptr].type eq "AQ"}
						<td>
							{$message[ptr].username}
							&nbsp&nbsp&nbsp回复了您的问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a></span>
						</td>

						{elseif $message[ptr].type eq "AM"}
						<td>
							{$message[ptr].username}
							&nbsp&nbsp&nbsp回复了您关注的问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "CA"}
						<td>
							{$message[ptr].username}
							&nbsp&nbsp&nbsp在问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a></span>&nbsp&nbsp&nbsp中评论了您的回答
						</td>

						{elseif $message[ptr].type eq "CQ"}
						<td>
							{$message[ptr].username}
							&nbsp&nbsp&nbsp评论了您的问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "CM"}
						<td>
							{$message[ptr].username}
							&nbsp&nbsp&nbsp评论了您关注的问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "MPQ"}
						<td>
							{$message[ptr].username}&nbsp;(您关注的人)&nbsp&nbsp提出了问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "MPA"}
						<td>
							{$message[ptr].username}&nbsp;(您关注的人)&nbsp&nbsp回复了问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "MPC"}
						<td>
							{$message[ptr].username}&nbsp;(您关注的人)&nbsp&nbsp评论了问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "MPM"}
						<td>
							{$message[ptr].username}&nbsp;(您关注的人)&nbsp&nbsp关注了问题&nbsp&nbsp&nbsp
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$message[ptr].question_id}&msg_id={$message[ptr].umsg_id}'>
				{$message[ptr].question}</a>
			</span></td>

						{elseif $message[ptr].type eq "MP"}
						<td>
							{$message[ptr].username}&nbsp;关注了您!
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$message[ptr].sender_id}&msg_id={$message[ptr].umsg_id}'>
				快去看看吧！</a>
			</span></td>
					{/if}
				</tr>
			</div>
		{/section}
	</table>
</div>
{/if}
<!---------------------------------------------------------------------用户活动记录--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户活动记录--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户活动记录--------------------------------------------------------------	-->

{if $tab eq "activity"}
<div id="activity_list">

	<table>
		{section name=ptr loop=$activity}
			<div id='activity-{$activity[ptr].act_id}'>
				<tr>
					<td>{$activity[ptr].action_date}</td>
					<td>{$activity[ptr].action_type}
					</td>
					{if $activity[ptr].username neq ""}
						<td>U:<a
							href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$activity[ptr].user_id}'>{$activity[ptr].username}
						</td>
						{elseif $activity[ptr].tag_title neq ""}
						<td>T:<a
							href='{$BASE_HOSTPATH}dr-includes/dr-page-question-list.php?tid={$activity[ptr].tag_id}'>{$activity[ptr].tag_title}
						</td>
						{elseif $activity[ptr].question neq ""}
						<td>Q:<a
							href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$activity[ptr].question_id}'>{$activity[ptr].question}
						</td>
					{/if}
				</tr>
				{if $activity[ptr].reply neq ""}
					<tr>
						<td></td>
						<td></td>
						<td>A:{$activity[ptr].reply}</td>
					</tr>
				{/if}
				{if $activity[ptr].comment neq ""}
					<tr>
						<td></td>
						<td></td>
						<td>C:{$activity[ptr].comment}</td>
					</tr>
				{/if}
			</div>
		{/section}
		{if $activity|@count eq 0}
			没有用户活动记录
		{/if}
	</table>
</div>
{/if}


<!---------------------------------------------------------------------用户问题和关注--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户问题和关注--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户问题和关注--------------------------------------------------------------	-->

{if $tab eq "question"}

<!--	我的问题   	-->
<div></div>
<div id="myquestion"><h2>My Question({$questions|@count}
	):</h2></div>

<div id="questionList">
	{section name=q_ptr loop=$questions}

		<div id="question-summary-{$questions[q_ptr].id}"
			 class="question-summary">

			<div class="summary">
				<!-- Start - 标题链接 -->
                <span><a
					href="{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$questions[q_ptr].id}"
					title="查看问题内容">
					<h2>{$questions[q_ptr].title}</h2></a>
                <!-- End - 标题链接 -->
                
				<!-- Start - 标签列表 -->
				<div class="tags-list">
					Tag:
					{assign var="tags" value=$questions[q_ptr].tags}
					{section name=t_ptr loop=$tags}
						<a href="{$BASE_HOSTPATH}dr-includes/dr-page-question-list.php?tid={$tags[t_ptr].id}"
						   title="查看tag相关问题">{$tags[t_ptr].title}</a>
					{/section}
				</div>
                <div><span
					class="answers-count">Answer: {$questions[q_ptr].answers_num}</span>
				</div>

					{if $is_login}
						{if $questions[q_ptr].user_id neq $login_id}
							{if $questions[q_ptr].is_mark}
								<div><input name="mark"
											id="mark-{$questions[q_ptr].id}"
											type="button" value="取消关注"
											onclick="mark_question('{$questions[q_ptr].id}','{$is_login}',value)">
								</div>
								{else}
								<div><input name="mark"
											id="mark-{$questions[q_ptr].id}"
											type="button" value="关注"
											onclick="mark_question('{$questions[q_ptr].id}','{$is_login}',value)">
								</div>
							{/if}
						{/if}
					{/if}

					<!-- Start - 提问者信息 -->
				<div class="question-owner">
					<div class="user-info">

						<div class="user-details">
							<a href="dr-page-userinfo.php?uid={$questions[q_ptr].user_id}"
							   class="username" title="进入个人主页">
								{$questions[q_ptr].user_username}</a>
							(<span class="reputation-score"
								   title="reputation score">{$questions[q_ptr].user_points}</span>)
						</div>
						<span
							class="relativetime">{$questions[q_ptr].created_date}</span>
					</div>
				</div>

			</div>
		</div>
	{/section}
	{if $questions|@count eq 0}
		没有提出问题
	{/if}
</div>

<!--	我的关注的问题   	-->
<div class="clear"></div>
<div id="markquestion"><h2>Mark Question({$mark|@count}):</h2></div>

<div id="questionList">
	{section name=q_ptr loop=$mark}

		<div id="question-summary-{$mark[q_ptr].id}" class="question-summary">

			<div class="summary">
				<!-- Start - 标题链接 -->
                <span><a
					href="{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$mark[q_ptr].id}"
					title="查看问题内容">
					<h2>{$mark[q_ptr].title}</h2></a>
                <!-- End - 标题链接 -->
                
				<!-- Start - 标签列表 -->
				<div class="tags-list">
					Tag:
					{assign var="tags" value=$mark[q_ptr].tags}
					{section name=t_ptr loop=$tags}
						<a href="{$BASE_HOSTPATH}dr-includes/dr-page-question-list.php?tid={$tags[t_ptr].id}"
						   title="查看tag相关问题">{$tags[t_ptr].title}</a>
					{/section}
				</div>
                <div><span
					class="answers-count">Answer: {$mark[q_ptr].answers_num}</span>
				</div>

					{if $is_login}
						{if $mark[q_ptr].user_id neq $login_id}
							{if $mark[q_ptr].is_mark}
								<div><input name="mark"
											id="mark-{$mark[q_ptr].id}"
											type="button" value="取消关注"
											onclick="mark_question('{$mark[q_ptr].id}','{$is_login}',value)">
								</div>
								{else}
								<div><input name="mark"
											id="mark-{$mark[q_ptr].id}"
											type="button" value="关注"
											onclick="mark_question('{$mark[q_ptr].id}','{$is_login}',value)">
								</div>
							{/if}
						{/if}
					{/if}

					<!-- Start - 提问者信息 -->
				<div class="question-owner">
					<div class="user-info">

						<div class="user-details">
							<a href="dr-page-userinfo.php?uid={$mark[q_ptr].user_id}"
							   class="username" title="进入个人主页">
								{$mark[q_ptr].user_username}</a>
							(<span class="reputation-score"
								   title="reputation score">{$mark[q_ptr].user_points}</span>)
						</div>
						<span
							class="relativetime">{$mark[q_ptr].created_date}</span>
					</div>
				</div>

			</div>
		</div>
	{/section}
	{if $mark|@count eq 0}
		没有关注的问题
	{/if}
</div>

<!-- 		我关注的tag 		-->
<div class="clear"></div>
<div id="tags">
	<div id="mark-tag-header"><h2>我关注的标签({$taglist|@count}):</h2></div>
	<table>
		{section name=t_ptr loop=$taglist}
			<div id="tag-summary-{$taglist[t_ptr].tag_id}" class="tag-summary">
				<div class="tag">
					<tr>
						<td><a
							href="{$BASE_HOSTPATH}dr-includes/dr-page-question-list.php?tid={$taglist[t_ptr].tag_id}"
							title="查看tag相关问题">{$taglist[t_ptr].title}</a></td>
						<td>
							<div class='taglisten'>
								{if $is_login}
									{if $taglist[t_ptr].is_marked}
										<span><input
											id='tag-{$taglist[t_ptr].tag_id}'
											type='button' value='取消关注'
											onclick="mark_tag('{$taglist[t_ptr].tag_id}',value,'{$is_login}')"/></span>
										{else}
										<span><input
											id='tag-{$taglist[t_ptr].tag_id}'
											type='button' value='关注'
											onclick="mark_tag('{$taglist[t_ptr].tag_id}',value,'{$is_login}')"/></span>
									{/if}
								{/if}
							</div>
						</td>
					</tr>
				</div>
			</div>
		{/section}
		{if $taglist|@count eq 0}
			没有关注的tag
		{/if}
	</table>
</div>
{/if}
<!---------------------------------------------------------------------用户收听和被收听--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户收听和被收听--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户收听和被收听--------------------------------------------------------------	-->

{if $tab eq "listen"}
<!--	我收听的用户   	-->

<div id="listening-user">
	<div id="listening-header"><h2>我收听的用户({$listening|@count}):</h2></div>
	<table>
		{section name=ptr loop=$listening}
			<div id='listening-{$listening[ptr].user_id}'>
				<tr>
					<td><a
						href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$listening[ptr].user_id}'>{$listening[ptr].username}
					</td>
					<td>
						<div class='userlisten'>
							{if $is_login}
								{if $listening[ptr].user_id neq $login_id}
									{if $listening[ptr].is_marked}
										<span><input
											id='userlistening-{$listening[ptr].user_id}'
											type='button' value='取消收听'
											onclick="mark_user('{$listening[ptr].user_id}',value,'{$is_login}')"/></span>
										{else}
										<span><input
											id='userlistening-{$listening[ptr].user_id}'
											type='button' value='收听'
											onclick="mark_user('{$listening[ptr].user_id}',value,'{$is_login}')"/></span>
									{/if}
								{/if}
							{/if}
						</div>
					</td>
				</tr>
			</div>
		{/section}
		{if $listening|@count eq 0}
			没有收听记录
		{/if}
	</table>
</div>

<!--	收听我的用户  	-->
<div id="listened-user">
	<div id="listened-header"><h2>收听我的用户({$listened|@count}):</h2></div>
	<table>
		{section name=ptr loop=$listened}
			<div id='listened-{$listened[ptr].user_id}'>
				<tr>
					<td><a
						href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$listened[ptr].user_id}'>{$listened[ptr].username}
					</td>
					<td>
						<div class='userlisten'>
							{if $is_login}
								{if $listened[ptr].user_id neq $login_id}
									{if $listened[ptr].is_marked}
										<span><input
											id='userlistened-{$listened[ptr].user_id}'
											type='button' value='取消收听'
											onclick="mark_user('{$listened[ptr].user_id}',value,'{$is_login}')"/></span>
										{else}
										<span><input
											id='userlistened-{$listened[ptr].user_id}'
											type='button' value='收听'
											onclick="mark_user('{$listened[ptr].user_id}',value,'{$is_login}')"/></span>
									{/if}
								{/if}
							{/if}
						</div>
					</td>
				</tr>
			</div>
		{/section}
		{if $listened|@count eq 0}
			没有其他人收听您
		{/if}
	</table>
</div>
{/if}
<!---------------------------------------------------------------------用户回答和评论--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户回答和评论--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户回答和评论--------------------------------------------------------------	-->

{if $tab eq "reply"}
<!--	我的回答   	-->

<div id="answer">
	<div id="answerheader"><h2>My Answer({$answer|@count}):</h2></div>
	<table>
		{section name=ptr loop=$answer}
			<div id='answer-{$answer[ptr].act_id}'>
				<tr>
					<td>{$answer[ptr].date}</td>
					<td>Q:<a
						href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$answer[ptr].question_id}'>{$answer[ptr].question}
					</td>
				</tr>
				{if $answer[ptr].reply neq ""}
					<tr>
						<td></td>
						<td>A:{$answer[ptr].reply}</td>
					</tr>
				{/if}
			</div>
		{/section}
		{if $answer|@count eq 0}
			没有回答记录
		{/if}
	</table>
</div>

<!--	我的评论   	-->
<div id="comment">
	<div id="commentheader"><h2>My Comment({$comment|@count}):</h2></div>
	<table>
		{section name=ptr loop=$comment}
			<div id='comment-{$comment[ptr].act_id}'>
				<tr>
					<td>{$comment[ptr].date}</td>
					<td>Q:<a
						href='{$BASE_HOSTPATH}dr-includes/dr-page-question-comment.php?qid={$comment[ptr].question_id}'>{$comment[ptr].question}
					</td>
				</tr>
				{if $comment[ptr].reply neq ""}
					<tr>
						<td></td>
						<td>A:{$comment[ptr].reply}</td>
					</tr>
				{/if}
				{if $comment[ptr].comment neq ""}
					<tr>
						<td></td>
						<td>C:{$comment[ptr].comment}
						</td>
					</tr>
				{/if}
			</div>
		{/section}
		{if $comment|@count eq 0}
			没有评论记录
		{/if}
	</table>
</div>
{/if}


{if $tab eq "vote"}

<!--	问题投票   	-->
<div id="question_vote">
	<div id="question_vote_header"><h2>My Vote onQuestion({$question_vote|@count}):</h2></div>
	<table>
		{section name=ptr loop=$question_vote}
			<div id='answer-{$question_vote[ptr].vote_id}'>
				<tr>
					<td>{$question_vote[ptr].vote_date}</td>
					<td>{$question_vote[ptr].updown}</td>
					<td>Q:<a
						href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$question_vote[ptr].question_id}'>{$question_vote[ptr].question}
					</td>
				</tr>
			</div>
		{/section}
		{if $question_vote|@count eq 0}
			没有对问题的投票记录
		{/if}
	</table>
</div>

<!--	回答投票   	-->
<div id="answer_vote">
	<div id="answer_vote_header"><h2>My Vote on Answer({$answer_vote|@count}):</h2></div>
	<table>
		{section name=ptr loop=$answer_vote}
			<div id='answer-{$answer_vote[ptr].vote_id}'>
				<tr>
					<td>{$answer_vote[ptr].vote_date}</td>
					<td>{$answer_vote[ptr].updown}</td>
					<td>Q:<a
						href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$answer_vote[ptr].question_id}'>{$answer_vote[ptr].question}
					</td>
				</tr>
				{if $answer_vote[ptr].reply neq ""}
					<tr>
						<td></td>
						<td></td>
						<td>A:{$answer_vote[ptr].reply}
						</td>
					</tr>
				{/if}
			</div>
		{/section}
		{if $answer_vote|@count eq 0}
			没有对问题的投票记录
		{/if}
	</table>
</div>

<!--	评论投票   	-->
<div id="comment_vote">
	<div id="comment_vote_header"><h2>My Vote onComment({$comment_vote|@count}):</h2></div>
	<table>
		{section name=ptr loop=$comment_vote}
			<div id='comment-{$comment_vote[ptr].vote_id}'>
				<tr>
					<td>{$comment_vote[ptr].vote_date}</td>
					<td>{$comment_vote[ptr].updown}</td>
					<td>Q:<a
						href='{$BASE_HOSTPATH}dr-includes/dr-page-question-answer.php?qid={$comment_vote[ptr].question_id}'>{$comment_vote[ptr].question}
					</td>
				</tr>
				{if $comment_vote[ptr].reply neq ""}
					<tr>
						<td></td>
						<td></td>
						<td>A:{$comment_vote[ptr].reply}</td>
					</tr>
				{/if}
				{if $comment_vote[ptr].comment neq ""}
					<tr>
						<td></td>
						<td></td>
						<td>
							C:{$comment_vote[ptr].comment}
						</td>
					</tr>
				{/if}
			</div>
		{/section}
		{if $comment_vote|@count eq 0}
			没有对问题的投票记录
		{/if}
	</table>
</div>
{/if}

<!---------------------------------------------------------------------用户数据统计--------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户数据统计---------------------------------------------------------------	-->
<!---------------------------------------------------------------------用户数据统计---------------------------------------------------------------	-->

{if $tab eq "statistic"}
<div id="statistic_list">
	<table>
		<tr>
			<td>积分：</td>
			<td>{$statistic.points}</td>
		</tr>
		<tr>
			<td>提问个数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=question#module'>
				{$statistic.question_send}</a>
			</span></td>
		</tr>
		<tr>
			<td>回答个数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=reply#module'>
				{$statistic.answer_send}</a>
			</span></td>
		</tr>
		<tr>
			<td>评论个数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=reply#commentheader'>
				{$statistic.comment_send}</a>
			</span></td>
		</tr>
		<tr>
			<td>关注问题数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=question#markquestion'>
				{$statistic.mark_question}</a>
			</span></td>
		</tr>
		<tr>
			<td>关注人数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=listen#module'>
				{$statistic.mark_people}</a>
			</span></td>
		</tr>
		<tr>
			<td>关注标签数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=question#mark-tag-header'>
				{$statistic.mark_tag}</a>
			</span></td>
		</tr>
		<tr>
			<td>被关注数：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=listen#listened-header'>
				{$statistic.marks_get}</a>
			</span></td>
		</tr>
		<tr>
			<td>-----------------</td>
		</tr>
		<tr>
			<td>投票（顶）：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=vote#module'>
				{$statistic.upvote_send}</a>
			</span></td>
		</tr>
		<tr>
			<td>投票（踩）：</td>
			<td>
			<span onMouseOver="this.style.textDecoration='underline';"
				  onMouseout="this.style.textDecoration='none';">
			<a href='{$BASE_HOSTPATH}dr-admin/dr-page-userinfo.php?uid={$statistic.user_id}&tab=vote#module'>
				{$statistic.downvote_send}</a>
			</span></td>
		</tr>
		<tr>
			<td>获得（顶）：</td>
			<td>{$statistic.upvote_get}</td>
		</tr>
		<tr>
			<td>获得（踩）：</td>
			<td>{$statistic.downvote_get}</td>
		</tr>
	</table>
</div>
{/if}
</div>
</div>

{include file="footer.tpl"}